
CC = gcc
CFLAG = -g -O3

all: list queue stack hash
list:list.o
	${CC} ${CFLAG} -o $@_test $? ../src/list.c	
	rm -rf *.o
queue:queue.o
	${CC} ${CFLAG} -o $@_test $? ../src/queue.c ../src/list.c
	rm -rf *.o
stack:stack.o
	${CC} ${CFLAG} -o $@_test $? ../src/stack.c ../src/list.c
	rm -rf *.o
hash:hash.o
	${CC} ${CFLAG} -o $@_test $? ../src/hash.c
	rm -rf *.o
tree:tree.o
	${CC} ${CFLAG} -o $@_test $? ../src/tree.c ../src/queue.c ../src/list.c
	rm -rf *.o
rbtree:rbtree.o
	${CC} ${CFLAG} -o $@_test $? ../src/rbtree.c ../src/queue.c ../src/list.c
	rm -rf *.o
clean:
	rm -rf *.o
